package com.spsy.order.domain;

import com.spsy.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author: liuzhiping
 * @date: 2025/5/15 14:27
 **/
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Cart extends BaseEntity {

    private Long id;

    private Long productId;

    private Long quantity;

    private BigDecimal price;

    private Long userId;

    private Date createdTime;

    private Date updatedTime;



        /*id int auto_increment
        primary key,
        product_id int null comment '产品id',
        quantity int null comment '数量',
        price double(10,2) null comment '价格',
        user_id int null comment '用户id',
        created_time datetime null,
        updated_time datetime null*/


}
